import ReactDOM from "react-dom/client";

import App from "./App";

import { Provider } from "react-redux";
import store from "./redux";

const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(
  // 1. Provider 给后代组件传递 store 中的数据
  // 2. Provider 监听 store 数据的变化，重新渲染子组件
  <Provider store={store}>
    <App />
  </Provider>
);
